document.writeln("<!DOCTYPE html>");
document.writeln("<html>");
document.writeln("	<head>");
document.writeln("		<meta charset=\'utf-8\'>");
document.writeln("		<title></title>");
document.writeln("		<meta name=\'viewport\' content=\'width=device-width,initial-scale=1,user-scalable=0\'>");
document.writeln("		<link rel=\'stylesheet\' type=\'text/css\' href=\'css/basestyle.css\'/>");
document.writeln("		<link rel=\'stylesheet\' type=\'text/css\' href=\'css/headfoot.css\'/>");
document.writeln("		<script src=\'js/base.js\'></script>");
document.writeln("	</head>");
document.writeln("	<body>");
document.writeln("		<div id=\'m-header\' class=\'visible-xs xs-head\'>");
document.writeln("			<div id=\'headmove\'>");
document.writeln("				<div class=\'headone\'>");
document.writeln("					<div class=\'headonewarp\' @click=\'openmine\'>");
document.writeln("						<img src=\'./images/icon-mulu.png\'>");
document.writeln("					</div>");
document.writeln("				</div>");
document.writeln("				<div class=\'headtwo\' v-show=\'xssearch == 1\'>");
document.writeln("					<div class=\'headtwowarp\'>");
document.writeln("						<img src=\'./images/logo_icon.png\'>");
document.writeln("					</div>");
document.writeln("				</div>");
document.writeln("				<div class=\'headtwo\' v-show=\'xssearch == 2\'>");
document.writeln("					<div class=\'headtwocontent\'>");
document.writeln("						<input v-model=\'searchcontent\' type=\'\' />");
document.writeln("						<div class=\'closeheadtwocontent\' @click=\'closesearch\'>");
document.writeln("							<img src=\'./images/xs_close.png\' >");
document.writeln("						</div>");
document.writeln("						<div class=\'choosewarp\'>");
document.writeln("							<p @click=\'openchoice\'>{{typesearch0}}</p>");
document.writeln("							<div class=\'choosewarpchoice\' v-show=\'chiocecontent == 1\'>");
document.writeln("								<p v-for=\'(item,index) in leixinglist\' :key=\'index\' @click=\'choiceitem(index)\'>{{item.name}}</p>");
document.writeln("							</div>");
document.writeln("						</div>");
document.writeln("					</div>");
document.writeln("				</div>");
document.writeln("				<div class=\'headone\'>");
document.writeln("					<div class=\'mineimg\' @click=\'opensearch\'>");
document.writeln("						<img src=\'./images/search_icon.png\'>");
document.writeln("					</div>");
document.writeln("				</div>");
document.writeln("				<div class=\'mulu\' v-show=\'page == 1 \'>");
document.writeln("					<div class=\'mulubg\' @click=\'closemine\'></div>");
document.writeln("					<div class=\'mulunav\'>");
document.writeln("						<div class=\'mulunavtop\'>");
document.writeln("							<div class=\'mulunavtoptxt\' @click=\'changelanguage\'>");
document.writeln("								<p>EN/中文</p>");
document.writeln("							</div>");
document.writeln("");
document.writeln("							<div class=\'mulunavtopimg\' v-show=\'tokenstatus==0\'>");
document.writeln("								<div class=\'mulunavtopimgicon\'>");
document.writeln("									<img src=\'./images/weilogin.png\'>");
document.writeln("								</div>");
document.writeln("								<div class=\'mulunavtopimgname\' @click=\'loginuser\'>");
document.writeln("									<p>登录/注册</p>");
document.writeln("								</div>");
document.writeln("							</div>");
document.writeln("");
document.writeln("							<div class=\'mulunavtopimg\' v-show=\'tokenstatus == 1\'>");
document.writeln("								<div class=\'mulunavtopimgicon\' @click=\'openperson\'>");
document.writeln("									<img :src=\'avatar\'>");
document.writeln("								</div>");
document.writeln("								<div class=\'mulunavtopimgname\'>");
document.writeln("									<p>{{nickname}}</p>");
document.writeln("								</div>");
document.writeln("							</div>");
document.writeln("						</div>");
document.writeln("						<div class=\'mulunavwarp\' v-show=\'languagestatus==1\'>");
document.writeln("							<ul>");
document.writeln("								<li>");
document.writeln("									<a href=\'index.html\'>");
document.writeln("										<p>首页</p>");
document.writeln("									</a>");
document.writeln("								</li>");
document.writeln("								<li>");
document.writeln("									<a href=\'jingsaicenter.html\'>");
document.writeln("										<p>竞赛中心</p>");
document.writeln("									</a>");
document.writeln("								</li>");
document.writeln("								<li>");
document.writeln("									<a href=\'fabu.html\'>");
document.writeln("										<p>我要发布</p>");
document.writeln("									</a>");
document.writeln("								</li>");
document.writeln("								<li>");
document.writeln("									<a href=\'workstrack.html\'>");
document.writeln("										<p>作品追踪</p>");
document.writeln("									</a>");
document.writeln("								</li>");
document.writeln("								<li>");
document.writeln("									<a href=\'about.html\'>");
document.writeln("										<p>关于我们</p>");
document.writeln("									</a>");
document.writeln("								</li>");
document.writeln("							</ul>");
document.writeln("						</div>");
document.writeln("						<div class=\'mulunavwarp\' v-show=\'languagestatus == 2\'>");
document.writeln("							<ul>");
document.writeln("								<li>");
document.writeln("									<a href=\'index.html\'>");
document.writeln("										<p>Home</p>");
document.writeln("									</a>");
document.writeln("								</li>");
document.writeln("								<li>");
document.writeln("									<a href=\'jingsaicenter.html\'>");
document.writeln("										<p>Competition</p>");
document.writeln("									</a>");
document.writeln("								</li>");
document.writeln("								<li>");
document.writeln("									<a href=\'fabu.html\'>");
document.writeln("										<p>Release</p>");
document.writeln("									</a>");
document.writeln("								</li>");
document.writeln("								<li>");
document.writeln("									<a href=\'workstrack.html\'>");
document.writeln("										<p>Tracking</p>");
document.writeln("									</a>");
document.writeln("								</li>");
document.writeln("								<li>");
document.writeln("									<a href=\'about.html\'>");
document.writeln("										<p>About</p>");
document.writeln("									</a>");
document.writeln("								</li>");
document.writeln("							</ul>");
document.writeln("						</div>");
document.writeln("					</div>");
document.writeln("				</div>");

document.writeln("			</div>");
document.writeln("		</div>");
document.writeln("		<script src=\'https://cdn.jsdelivr.net/npm/vue/dist/vue.js\'></script>");
document.writeln("		<script src=\'https://cdn.bootcdn.net/ajax/libs/axios/0.21.0/axios.min.js\'></script>");
document.writeln("		<script type=\'text/javascript\'>");
document.writeln("			let headmove = new Vue({");
document.writeln("				el: \'#headmove\',");
document.writeln("				data: {");
document.writeln("					typesearch0:\'请选择类型\',");
document.writeln("					leixinglist:[");
document.writeln("						{");
document.writeln("							name:\'竞赛\',");
document.writeln("							id:1");
document.writeln("						},");
document.writeln("						{");
document.writeln("							name:\'追踪\',");
document.writeln("							id:2");
document.writeln("						}");
document.writeln("					],");
document.writeln("					page: 0,");
document.writeln("					userid:\'\',");
document.writeln("					token:\'\',");
document.writeln("					nickname:\'\',");
document.writeln("					avatar:\'\',");
document.writeln("					num:0,");
document.writeln("					tokenstatus:0,");
document.writeln("					languagestatus:1,");
document.writeln("					xssearch:1,");
document.writeln("					searchcontent:\'\',");
document.writeln("					chiocecontent:0,");
document.writeln("					typeid:0");
document.writeln("				},");
document.writeln("				created() {");
document.writeln("					let that = this");
document.writeln("					if (localStorage.getItem(\'logininfo\')) {");
document.writeln("						console.log(\'isdfksjdf sd\')");
document.writeln("						let obj = JSON.parse(localStorage.getItem(\'logininfo\'));");
document.writeln("						console.log(obj)");
document.writeln("						that.userid = obj.userid");
document.writeln("						that.token = obj.token");
document.writeln("						if(that.token != \'\'){");
document.writeln("							that.tokenstatus = 1");
document.writeln("						}else{");
document.writeln("							that.tokenstatus = 0");
document.writeln("						}");
document.writeln("					}");
document.writeln("					if (localStorage.getItem(\'userinfo\')) {");
document.writeln("						console.log(\'isdfksjdf sd\')");
document.writeln("						let obj = JSON.parse(localStorage.getItem(\'userinfo\'));");
document.writeln("						console.log(obj)");
document.writeln("						that.nickname = obj.nickname");
document.writeln("						that.avatar = obj.avatar");
document.writeln("					}");
document.writeln("					if(!sessionStorage.getItem(\'typeid\')) {");
document.writeln("						//竞赛类型");
document.writeln("						sessionStorage.setItem(\'typeid\', 0);");
document.writeln("					}");
document.writeln("					if(!sessionStorage.getItem(\'content\')) {");
document.writeln("						//搜索内容");
document.writeln("						sessionStorage.setItem(\'content\', '');");
document.writeln("					}");
document.writeln("				},");
document.writeln("				mounted() {");
document.writeln("					let that = this");
document.writeln("					that.getlogining() //登陆状态判断");
document.writeln("					if(location.pathname.indexOf(\'search\') != -1) {");
document.writeln("						that.xssearch = 2");
document.writeln("					}else {");
document.writeln("						that.xssearch = 1");
document.writeln("					}");
document.writeln("					if (sessionStorage.getItem(\'languagestatus\')) {");
document.writeln("						that.languagestatus = sessionStorage.getItem(\'languagestatus\')");
document.writeln("					}");
document.writeln("					if(sessionStorage.getItem(\'typeid\')) {");
document.writeln("						//竞赛类型");
document.writeln("						that.typeid = sessionStorage.getItem(\'typeid\')");
document.writeln("						if(that.typeid==1){");
document.writeln("							that.typesearch0=\'竞赛\'");
document.writeln("						}else if(that.typeid==2){");
document.writeln("							that.typesearch0=\'追踪\'");
document.writeln("						}else if(that.typeid==0){");
document.writeln("							that.typesearch0=\'请选择类型\'");
document.writeln("						}");
document.writeln("						");
document.writeln("					}");
document.writeln("					if(sessionStorage.getItem(\'content\')) {");
document.writeln("						//搜索内容");
document.writeln("						that.searchcontent= sessionStorage.getItem(\'content\');");
document.writeln("					}");
document.writeln("				},");
document.writeln("				methods: {");
document.writeln("					//判断登陆状态");
document.writeln("					getlogining:function(){");
document.writeln("						let that = this");
document.writeln("						if(that.token !=\'\' ){");
document.writeln("							axios.post(\'http://127.0.0.1:8080/api/bishe.basics/islogin\',{");
document.writeln("								userid:that.userid,");
document.writeln("								token:that.token");
document.writeln("							})");
document.writeln("							.then((res) =>{");
document.writeln("								if(res.data.code == 2){");
document.writeln("								console.log(res,\'我是检查登陆状态\')");
document.writeln("									if (localStorage.getItem(\'logininfo\')) {");
document.writeln("										let obj = JSON.parse(localStorage.getItem(\'logininfo\'))");
document.writeln("										that.userid = obj.userid = \'\'");
document.writeln("										that.token = obj.token = \'\'");
document.writeln("										obj = JSON.stringify(obj)");
document.writeln("										localStorage.setItem(\'logininfo\', obj)");
document.writeln("										that.tokenstatus = 0");
document.writeln("										that.tanchuang2 = 1");
document.writeln("									}");
document.writeln("								}");
document.writeln("							})");
document.writeln("						}");
document.writeln("					},");
document.writeln("					openmine: function() {");
document.writeln("						this.page = 1");
document.writeln("						console.log(11)");
document.writeln("					},");
document.writeln("					// 竞赛搜索");
document.writeln("					getracesearchinfo:function(){");
document.writeln("						let that = this");
document.writeln("						axios.get(\'http://127.0.0.1:8080/api/bishe.index/trackSearch\',{");
document.writeln("							params:{");
document.writeln("								userid:that.userid,");
document.writeln("								token:that.token,");
document.writeln("								text:that.searchcontent,");
document.writeln("								page:\'\'");
document.writeln("							},");
document.writeln("						})");
document.writeln("						.then((res) =>{");
document.writeln("							if(res.data.code == 1){");
document.writeln("								window.location.href = \'search.html\'");
document.writeln("								sessionStorage.setItem(\'content\', that.searchcontent);");
document.writeln("							}");
document.writeln("							console.log(res)");
document.writeln("						})");
document.writeln("					},");
document.writeln("					// 作品追踪搜索");
document.writeln("					gettracksearchinfo:function(){");
document.writeln("						axios.get(\'http://127.0.0.1:8080/api/bishe.index/trackSearch\',{");
document.writeln("							params:{");
document.writeln("								userid:that.userid,");
document.writeln("								token:that.token,");
document.writeln("								text:that.searchcontent,");
document.writeln("								page:\'\'");
document.writeln("							},");
document.writeln("						})");
document.writeln("						.then((res) =>{");
document.writeln("							if(res.data.code == 1){");
document.writeln("								window.location.href = \'search.html\'");
document.writeln("								sessionStorage.setItem(\'content\', that.searchcontent);");
document.writeln("							}");
document.writeln("							console.log(res)");
document.writeln("						})");
document.writeln("					},");
document.writeln("					// ");
document.writeln("					opensearch: function() {");
document.writeln("						let that = this");
document.writeln("						if(that.xssearch == 1){");
document.writeln("							that.xssearch = 2");
document.writeln("						}else if(that.xssearch == 2){");
document.writeln("							if(that.typeid == 1){");
document.writeln("								that.getracesearchinfo()");
document.writeln("							}else{");
document.writeln("								that.gettracksearchinfo()");
document.writeln("							}");
document.writeln("						}");
document.writeln("						console.log(111)");
document.writeln("					},");
document.writeln("					// 关闭搜索框");
document.writeln("					closesearch:function(){");
document.writeln("						this.xssearch = 1");
document.writeln("						this.typesearch0 = \'请选择类型\',");
document.writeln("						this.searchcontent = \'\'");
document.writeln("						sessionStorage.setItem(\'typeid\',0);");
document.writeln("					},");
document.writeln("					closemine: function() {");
document.writeln("						this.page = 0");
document.writeln("					},");
document.writeln("					// 打开个人中心");
document.writeln("					openperson:function(){");
document.writeln("						window.location.href = \'personalcenter.html\'");
document.writeln("					},");
document.writeln("					// 打开搜索选项");
document.writeln("					openchoice:function(){");
document.writeln("						this.chiocecontent = 1");
document.writeln("					},");
document.writeln("					// 选择");
document.writeln("					choiceitem:function(i){");
document.writeln("						let that = this");
document.writeln("						console.log(that.leixinglist[0].name)");
document.writeln("						that.typesearch0 = that.leixinglist[i].name");
document.writeln("						that.typeid = that.leixinglist[i].id");
document.writeln("						that.chiocecontent = 0");
document.writeln("						sessionStorage.setItem(\'typeid\', that.typeid);");
document.writeln("					},");
document.writeln("					// 打开登录页");
document.writeln("					loginuser:function(){");
document.writeln("						console.log(111)");
document.writeln("						window.location.href = \'login.html\'");
document.writeln("					},");
document.writeln("					// 选择语言");
document.writeln("					changelanguage:function(){");
document.writeln("						console.log(111)");
document.writeln("						let that = this");
document.writeln("						//缓存中读取数据");
document.writeln("						if (sessionStorage.getItem(\'languagestatus\')) {");
document.writeln("							that.languagestatus = sessionStorage.getItem(\'languagestatus\')");
document.writeln("						}");
document.writeln("						that.languagestatus = that.languagestatus == 1 ? 2 : 1");
document.writeln("						console.log(that.languagestatus)");
document.writeln("						//改变数据存入缓存");
document.writeln("						sessionStorage.setItem(\'languagestatus\', that.languagestatus);");
document.writeln("						location.reload()");
document.writeln("						");
document.writeln("					}");
document.writeln("				}");
document.writeln("			})");
document.writeln("		</script>");
document.writeln("	</body>");
document.writeln("</html>");
document.writeln("");